<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>xxx的详细信息</title>
		<link rel="stylesheet" href="../../resources/css/users.css" />
		<link rel="stylesheet" href="../../resources/layui/css/layui.css" />
		<script type="text/javascript" src="../../resources/js/jquery-1.11.1.min.js"></script>
		<!--<script type="text/javascript" src="../../resources/layui/layui.js"></script>-->
	</head>

	<body>
		<jsp:include page="/pages/common/header.jsp"></jsp:include>
		<c:choose>
			<c:when test="${empty sessionScope.userId}">
				<script>
					layui.use('layer', function() {
						var layer = layui.layer;
						layer.msg('您还未登陆！', {
							icon: 2,
							time: 1000,
							end: function() {
								window.location.href = ("/index.jsp");
							}
						});
					});
				</script>
			</c:when>
		</c:choose>
		<!--header-->

		<script type="text/javascript" src="../../resources/js/tabCard.js"></script>
		<!--header end-->
		<div id="content">
			<div class="bg_user">
				<div class="user_info">
					<div class="user-pic">
						<div class="user-pic-bg">
							<img src="../../resources/images/course/course7.png" />
						</div>
					</div>

					<div class="user-info-right">

					</div>
				</div>
			</div>

			<div class="warp">
				<div class="l_nav">
					<ul>
			<!-- 
						<li>
							<a href="javascript:;" data-id="1" data-title="课程" data-url="../user/usercourses.jsp" class="site-demo-active active" data-type="tabAdd">
								<i class="layui-icon layui-icon-home "></i>
								<span>课程</span></a>
						</li>
				-->
						<li>
							<a href="javascript:;" data-id="2" data-title="提问" data-url="../user/userquestion.jsp" class="site-demo-active" data-type="tabAdd">
								<i class="layui-icon layui-icon-home"></i>
								<span>提问</span></a>
						</li>
						<li>
							<a href="javascript:;" data-id="3" data-title="文章" data-url="../user/userarticle.jsp" class="site-demo-active " data-type="tabAdd">
								<i class="layui-icon layui-icon-home"></i>
								<span>文章</span></a>
						</li>
						<!--<li>
							<a href="javascript:;" data-id="3" data-title="关注" data-url="../user/userarticle.jsp" class="site-demo-active " data-type="tabAdd">
								<i class="layui-icon layui-icon-home"></i>
								<span>关注</span></a>
						</li>-->
						<li>
							<a href="javascript:;" data-id="4" data-title="个人资料" data-url="../user/userdt.jsp" class="site-demo-active " data-type="tabAdd">
								<i class="layui-icon layui-icon-home"></i>
								<span>个人资料</span></a>
						</li>
					</ul>
					<div style="clear: both;"></div>

				</div>
				<div class="r_details">

					<div class="layui-tab  layui-anim layui-anim-up " lay-filter="demo" lay-allowclose="false">
						<ul class="layui-tab-title">
							<li class="layui-this" lay-id="1" id="onetab"><span><span class="layui-icon">&#xe638;</span>课程</span>
							</li>
						</ul>
						<div class="layui-tab-content" style="height: 700px;">
							<div class="layui-tab-item layui-show" style="height: 700px;">

								<iframe id="iframe" src="../user/usercourses.jsp" frameborder="0" style="width:100%;height:100%"></iframe>

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<jsp:include page="/pages/common/footer.jsp"></jsp:include>
		<script>
			$("#onetab i").css("display", "none");
		</script>
	</body>

</html>